#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Taotie Ren
# import logging 
# 禁用日志模块
# logging.disable(logging.CRITICAL)
# logging.basicConfig(level=logging.DEBUG, format=' %(asctime)s - %(levelname)s - %(message)s')
# 使用前，请先打开到画图界面
# e.g. Draw\\spiralDraw.png
import pyautogui, time
time.sleep(5)
pyautogui.click() # click to put drawing program in focus
distance = 200
while distance > 0:
	pyautogui.dragRel(distance, 0, duration=0.2)    # move right
	distance = distance - 5
	pyautogui.dragRel(0, distance, duration=0.2)    # move down
	pyautogui.dragRel(-distance, 0, duration=0.2)   # move left
	distance = distance - 5
	pyautogui.dragRel(0, -distance, duration=0.2)   # move up
